This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
The icon is package incorrectly for linux (deb). This is due to a bug in
app-builder
which is a dependency (wrapped as a npm module inapp-builder-bin
) of electron-builder, the tool used for packaging.There is a fix for it, but it hasn't been merged yet. And once it is the following must happened:
app-builder
must be released with the fix, together with a new version of the js wrapper (app-builder-bin
).electron-builder
must update its dependencies to include the new version ofapp-builder-bin
.electron-builder
with the updated dependencies must be released.electron-builder
dev dependency ofalephium-wallet
must be updated.alephium-wallet
can be released with the icon.While I'm confident that you can do the last two points quite quickly (providing no breaking changes from
electron-builder
), all the former points may take some times and are outside this project's control. It's likely that this won't happen before the mainnet release. Hence I'm submitting this quick fix to manually set the icon size to512
and package the icon correctly for the big day.If you would like to avoid hacks and temporary fixes like this one, feel free to close the PR 😉
Changes
This PR adds an
afterPack
hook which after gathering all the files for adeb
archives, remaps all icons with a size of0
to512
.Things to note:
0
) size will not be affected.0
size will be set to512
.0
and an actual size other than512
will be packaged incorrectly.app-builder
is fixed, the correct size of512
should be detected and the hook should not have any effect. It can then be removed. (If it remains, it should have no effects, besides wasting some CPU cycles.)